import {
  HTTP
} from '../../utils/http.js'

class PersonModel extends HTTP {
  constructor() {
    super()
  }

  getPersonalData() {
    return this.request('api/ATC.BussinessEmp.getPersonData')
  }

  getOrderData() {
    return this.request('api/ATC.Order.getReceivingOrderInfo')
  }

  savePersonalData(data) {
    return this.request('api/ATC.InterviewerEmp.save',data)
  }

  saveWorkExp(data) {
    return this.request('api/ATC.WorkExperience.save',data)
  }

  deleteWorkExp(data) {
    return this.request('api/ATC.WorkExperience.delete',data)
  }

  saveEduExp(data) {
    return this.request('api/ATC.LearningExperience.save', data)
  }

  deleteEduExp(data) {
    return this.request('api/ATC.LearningExperience.delete', data)
  } 

  saveTrainExp(data) {
    return this.request('api/ATC.TrainingUndergo.save', data)
  }

  deleteTrainExp(data) {
    return this.request('api/ATC.TrainingUndergo.delete', data)
  }

  saveMerchantInfo(data) {
    return this.request('api/ATC.MerchantEntry.save', data)
  }

  getMerchantInfo() {
    return this.request('api/ATC.BussinessEmp.getPersonMerchantEntryData')
  }
}

export {
  PersonModel
}